package com.woniu.microworkorderserver.businessmag.mapper;

import com.woniu.microcommonsserver.entity.PollingPlanInfoEntity;
import com.woniu.microcommonsserver.param.PageRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface InspectPlanMapper {

    /**
     * 新增数据
     * */
    Long save(@Param("p") PollingPlanInfoEntity planInfoEntity);

    /**
     * 分页查询
     * */
    List<PollingPlanInfoEntity> findPage(PageRequest request, @Param("p") PollingPlanInfoEntity planInfoEntity);

    /**
     * 删除数据
     * */
    void delete(@Param("id") long inspectPlanId);
}
